<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2016/3/12
 * Time: 15:37
 */

echo "<title>7-4 访问索引数组内容</title>";
echo "<p style='text-align: center'><a href=\"index.php\"><font size=\"4\">目录</font></a></p>";
header("Content-type: text/html; charset=utf-8");
echo "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />";

//从数组变量$arr中，读取键为0的值
$arr = array('苹果','香蕉');
$arr0 = $arr['0'];
if(isset($arr0)){print_r($arr0);}



























